package com.selenium;

import org.testng.Assert;
import org.testng.annotations.Test;


public class PrimeNumbers {
    public static boolean checkNumber(int b) {

        if (b < 2) return false;
        for (int i = 2; i * i <= b; i++)
            if (b % i == 0) return false;
        return true;
    }

    @Test
    public void info() {
        Assert.assertTrue(checkNumber(3));

    }


}
